package com.platform.study.patterns.creational.simple_factory;

/**
 * Created with IntelliJ IDEA.
 * User: wangyanginfo
 * Date: 12-11-20
 * Time: 下午4:24
 * To change this template use File | Settings | File Templates.
 */
public abstract class Operation {

    protected double numberA;

    protected double numberB;

    public double getNumberA() {
        return numberA;
    }

    public void setNumberA(double numberA) {
        this.numberA = numberA;
    }

    public double getNumberB() {
        return numberB;
    }

    public void setNumberB(double numberB) {
        this.numberB = numberB;
    }

    /**
     * 计算方法
     * @return 计算结果
     */
    public abstract double operationResult();
}
